package com.wntms.wy.pojo;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;

/*CREATE TABLE `freight_line` (
        `id` int(11) NOT NULL AUTO_INCREMENT COMMENT 'flid',
        `distance` double DEFAULT NULL COMMENT '里程',
        `arrivetime` datetime DEFAULT NULL COMMENT '抵达时间',
        PRIMARY KEY (`id`)
        ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='货运单路线'*/
@Data
@NoArgsConstructor
@AllArgsConstructor
public class FreightLine {
    private Integer id;
    private Double distance;
    //@JsonFormat(pattern = "yyyy-MM-dd'T'HH:mm:ss.SSS'Z'")
    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date arrivetime;
}
